import request from "@/utils/request";
import qs from "qs";

// 入职管理列表
export function onboardingList(params) {
  return request({
    url: "/system/info/pageList",
    method: "get",
    params,
  });
}
// 入职管理列表
export function onboardingcancel(data) {
  return request({
    url: `/system/info/cancel`,
    method: "post",
    data,
  });
}
// 入职管理查看
export function onboardingInfo(params) {
  return request({
    url: `/system/info/getDetailById?${params}`,
    method: "get",
  });
}
// 入职管理提交
export function onboardingSubmit(data) {
  return request({
    url: '/system/info/entryTransact',
    method: "post",
    data
  });
}
// 员工档案查询
export function pageList(data) {
  return request({
    url: '/system/employeeFiles/pageList',
    method: "post",
    data
  });
}
// 员工档案查看
export function getDetailById(params) {
  return request({
    url: `/system/employeeFiles/getDetailById?${qs.stringify(params)}`,
    method: "get"
  })
}
// 员工档案更新
export function updateById(data) {
  return request({
    url: '/system/employeeFiles/updateById',
    method: "post",
    data
  });
}